import Observes from './Observes.js'
export const observe = function (value) {
  // 如果value不是对象，什么都不做，null的类型也是一个 object字符串
  if (typeof value !== 'object' || value === null) {
    return
  }
  let ob;
  if (typeof value.__ob__ !== 'undefined') {
    ob = value.__ob__;
  } else {
    ob = new Observes(value);
  }

  return ob;
}